@extends('layouts.page')
@section('css')
     {{ HTML::style('assets/css/admin.css') }}
@stop

@section('main')
<header class="am-topbar admin-header">
  <div class="am-topbar-brand">
    <strong>蔓茂花廊</strong>
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <!-- 
      <li><a href="javascript:;">
      	<span class="am-icon-envelope-o">
      	</span> 收件箱 <span class="am-badge am-badge-warning">5</span></a>
      </li>
       -->
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-users"></span> 管理员 <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
          <li><a href="#"><span class="am-icon-cog"></span> 修改密码</a></li>
          <li><a href="{{URL::route('logout')}}"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar">
    <ul class="am-list admin-sidebar-list">
      <li><a href="{{URL::route('admin')}}"><span class="am-icon-home"></span> 首页</a></li>
      <li><a href="{{URL::route('admin')}}?type=2"><span class="am-icon-home"></span> Mobile首页</a></li>
      <li><a href="{{URL::route('story')}}"><span class="am-icon-pencil-square-o"></span> The Stories</a></li>
      <li><a href="{{URL::route('project')}}"><span class="am-icon-pencil-square-o"></span> Project</a></li>
      <li class="admin-parent">
        <a class="am-cf" data-am-collapse="{target: '#product'}">
        	<span class="am-icon-file"></span> 商品模块 
        	<span class="am-icon-angle-right am-fr am-margin-right"></span>
        </a>
        <ul class="am-list am-collapse admin-sidebar-sub {{isset($nav) && $nav == 'product' ? 'am-in' : ''}}" id="product">
          <li>
          	<a href="{{URL::route('product.category')}}" class="am-cf">
          	<span class="am-icon-check"></span> 产品类别
          	<span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span>
          	</a>
          </li>
          <li><a href="{{URL::route('product',['status'=>1])}}"><span class="am-icon-puzzle-piece"></span> 商品</a></li>
        </ul>
      </li>
      <li><a href="{{URL::route('user')}}"><span class="am-icon-user"></span> 用户列表</a></li>
      <li><a href="{{URL::route('order')}}"><span class="am-icon-pencil-square-o"></span> 订单</a></li>
      <li><a href="{{URL::route('notice')}}"><span class="am-icon-pencil-square-o"></span> 通知</a></li>
      <li><a href="{{URL::route('address.province')}}"><span class="am-icon-pencil-square-o"></span> 地理数据</a></li>
    </ul>
	<!-- 
    <div class="am-panel am-panel-default admin-sidebar-panel">
      <div class="am-panel-bd">
        <p><span class="am-icon-bookmark"></span> 公告</p>
        <p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>
      </div>
    </div>

    <div class="am-panel am-panel-default admin-sidebar-panel">
      <div class="am-panel-bd">
        <p><span class="am-icon-tag"></span> wiki</p>
        <p>Welcome to the Amaze UI wiki!</p>
      </div>
    </div>
     -->
  </div>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
  	@section('content')
	     This is the content.
	@show
  </div>
  <!-- content end -->
</div>

<footer>
  <hr>
  <p class="am-padding-left">© {{date('Y',time())}} 蔓茂花廊</p>
</footer>
@stop
